﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Vehicle.BLL
{
    /// <summary>
    /// Copyright (C) M-Tear团队
    /// 文 件 名：Admin.cs
    /// 版    本：v1.00.0000
    /// 创建标识：2009-08-26    Created by 杨光远 V1.00.0000
    /// 功能说明：Admin表逻辑层类（继承于逻辑层基类)
    /// 注意事项：无
    /// 
    /// 更新记录：
    /// 
    /// </summary>
    public class Admin : BLL.Base_BLL,IAdmin
    {

        private static readonly Vehicle.Interface.IAdmin d_Admin = Vehicle.Interface.Factory.CreateAdmin();
        /// <summary>
        /// 绑定页面DataList控件
        /// </summary>
        /// <param name="dlst">Repeater控件</param>
        ///  <param name="ma">系统通用实体层</param>
        public void RepeaterBind(Repeater Rept, Model.ComponentsInfo m_ComponentsInfo)
        {
            d_Admin.RepeaterBind(Rept, m_ComponentsInfo);
        }
        /// <summary>
        /// 绑定页面DropDownList1控件
        /// </summary>
        /// <param name="drop">DropDownList控件</param>
        public void DropDownListBind1(DropDownList drop)
        {
            d_Admin.DropDownListBind1(drop);
        }
        /// <summary>
        /// 绑定页面DropDownList2控件
        /// </summary>
        /// <param name="drop">DropDownList控件</param>
        public void DropDownListBind2(DropDownList drop)
        {
            d_Admin.DropDownListBind2(drop);
        }
        /// <summary>
        /// 添加用户数据
        /// </summary>
        /// <param name="m_AdminInfo">实体对象</param>
        public void Add(Model.AdminInfo m_AdminInfo)
        {
            d_Admin.Add(m_AdminInfo);
        }
        /// <summary>
        /// 修改用户数据
        /// </summary>
        /// <param name="m_AdminInfo">实体对象</param>
        public void Update(Model.AdminInfo m_AdminInfo)
        {
            d_Admin.Update(m_AdminInfo);
        }

    }
}
